package com.beyond.trace.dy.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.Size;

/**
 * 采购订单对象 t_trace_dy_order
 * 
 * @author Mr.Yao
 * @date 2022-04-09
 */
@TableName("t_trace_dy_order")
public class TraceDyOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单号 */
    @TableId(value = "order_id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long orderId;

    /** 供货商 */
    @Excel(name = "供货商")
    @ApiModelProperty(value = "供货商")
    private String orderSupplier;

    /** 产品 */
    @Excel(name = "产品")
    @ApiModelProperty(value = "产品")
    private String orderProduct;

    /** 产品品质 */
    @Excel(name = "产品品质")
    @ApiModelProperty(value = "产品品质")
    private String orderProductQuality;

    /** 产品养殖户 */
    @Excel(name = "产品养殖户")
    @ApiModelProperty(value = "产品养殖户")
    private String orderFarmers;

    /** 价格 */
    @Excel(name = "价格")
    @ApiModelProperty(value = "价格")
    @Size(min = 0,max = 15,message = "价格不能超过15个字符")
    private String orderPrice;

    /** 重量 */
    @Excel(name = "重量")
    @ApiModelProperty(value = "重量")
    @Size(min = 0,max = 15,message = "重量不能超过15个字符")
    private String orderWeight;

    /** 检验标志 */
    @Excel(name = "检验标志")
    @ApiModelProperty(value = "检验标志")
    private Long orderSh;

    /** 入库标志 */
    @Excel(name = "入库标志")
    @ApiModelProperty(value = "入库标志")
    private Long orderYs;

    /** 入库产品 */
    @Excel(name = "入库产品")
    @ApiModelProperty(value = "入库产品")
    private String orderStoreProduct;

    /** 入库数量 */
    @Excel(name = "入库数量")
    @ApiModelProperty(value = "入库数量")
    private BigDecimal orderStoreWeight;

    /** 下单人员 */
    @Excel(name = "下单人员")
    @ApiModelProperty(value = "下单人员")
    private String orderPerson;

    /** 下单人员联系方式 */
    @Excel(name = "下单人员联系方式")
    @ApiModelProperty(value = "下单人员联系方式")
    private String orderPersonPhone;

    /** 是否删除，1，是 0，否 */
    @Excel(name = "是否删除，1，是 0，否")
    @ApiModelProperty(value = "是否删除，1，是 0，否")
    private Long deleteFlag;

    /** 删除人 */
    @Excel(name = "删除人")
    @ApiModelProperty(value = "删除人")
    private String deleteBy;

    /** 删除日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "删除日期")
    private Date deleteTime;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setOrderSupplier(String orderSupplier) 
    {
        this.orderSupplier = orderSupplier;
    }

    public String getOrderSupplier() 
    {
        return orderSupplier;
    }
    public void setOrderProduct(String orderProduct) 
    {
        this.orderProduct = orderProduct;
    }

    public String getOrderProduct() 
    {
        return orderProduct;
    }
    public void setOrderProductQuality(String orderProductQuality) 
    {
        this.orderProductQuality = orderProductQuality;
    }

    public String getOrderProductQuality() 
    {
        return orderProductQuality;
    }
    public void setOrderFarmers(String orderFarmers) 
    {
        this.orderFarmers = orderFarmers;
    }

    public String getOrderFarmers() 
    {
        return orderFarmers;
    }
    public void setOrderPrice(String orderPrice)
    {
        this.orderPrice = orderPrice;
    }

    public String getOrderPrice()
    {
        return orderPrice;
    }
    public void setOrderWeight(String orderWeight)
    {
        this.orderWeight = orderWeight;
    }

    public String getOrderWeight()
    {
        return orderWeight;
    }
    public void setOrderSh(Long orderSh) 
    {
        this.orderSh = orderSh;
    }

    public Long getOrderSh() 
    {
        return orderSh;
    }
    public void setOrderYs(Long orderYs) 
    {
        this.orderYs = orderYs;
    }

    public Long getOrderYs() 
    {
        return orderYs;
    }
    public void setOrderStoreProduct(String orderStoreProduct) 
    {
        this.orderStoreProduct = orderStoreProduct;
    }

    public String getOrderStoreProduct() 
    {
        return orderStoreProduct;
    }
    public void setOrderStoreWeight(BigDecimal orderStoreWeight) 
    {
        this.orderStoreWeight = orderStoreWeight;
    }

    public BigDecimal getOrderStoreWeight() 
    {
        return orderStoreWeight;
    }
    public void setOrderPerson(String orderPerson) 
    {
        this.orderPerson = orderPerson;
    }

    public String getOrderPerson() 
    {
        return orderPerson;
    }
    public void setOrderPersonPhone(String orderPersonPhone) 
    {
        this.orderPersonPhone = orderPersonPhone;
    }

    public String getOrderPersonPhone() 
    {
        return orderPersonPhone;
    }
    public void setDeleteFlag(Long deleteFlag) 
    {
        this.deleteFlag = deleteFlag;
    }

    public Long getDeleteFlag() 
    {
        return deleteFlag;
    }
    public void setDeleteBy(String deleteBy) 
    {
        this.deleteBy = deleteBy;
    }

    public String getDeleteBy() 
    {
        return deleteBy;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderSupplier", getOrderSupplier())
            .append("orderProduct", getOrderProduct())
            .append("orderProductQuality", getOrderProductQuality())
            .append("orderFarmers", getOrderFarmers())
            .append("orderPrice", getOrderPrice())
            .append("orderWeight", getOrderWeight())
            .append("orderSh", getOrderSh())
            .append("orderYs", getOrderYs())
            .append("orderStoreProduct", getOrderStoreProduct())
            .append("orderStoreWeight", getOrderStoreWeight())
            .append("orderPerson", getOrderPerson())
            .append("orderPersonPhone", getOrderPersonPhone())
            .append("deleteFlag", getDeleteFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .append("remark", getRemark())
            .toString();
    }
}
